package agan.rpc.protocol;

import java.io.Serializable;

public class Invocation implements Serializable {
    // 接口名称
    private String interfaceName;
    // 需要调用的方法名
    private String methodName;
    // 方法中参数类型
    private Class[] types;
    // 方法的参数
    private Object[] args;

    public String getInterfaceName() {
        return interfaceName;
    }

    public void setInterfaceName(String interfaceName) {
        this.interfaceName = interfaceName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public Class[] getTypes() {
        return types;
    }

    public void setTypes(Class[] types) {
        this.types = types;
    }

    public Object[] getArgs() {
        return args;
    }

    public void setArgs(Object[] args) {
        this.args = args;
    }

    public Invocation(String interfaceName, String methodName, Class[] types, Object[] args) {
        this.interfaceName = interfaceName;
        this.methodName = methodName;
        this.types = types;
        this.args = args;
    }

}
